home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1440 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.sfu.ca!samy
  2. From: samy@news.sfu.ca (Sam Yee)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: TMapping again!
  5. Date: 19 Jan 1996 00:07:22 GMT
  6. Organization: Simon Fraser University
  7. Message-ID: <4dmnbq$pur@morgoth.sfu.ca>
  8. References: <mq2Xx*aB0@mkmk.in-chemnitz.de> <DLA1p3.A2n@si.hhs.nl>
  9. NNTP-Posting-Host: fraser.sfu.ca
  10. X-Newsreader: NN version 6.5.0 #5 (NOV)
  11.  
  12. robv@si.hhs.nl (Veer) writes:
  13.  
  14. >In article aB0@mkmk.in-chemnitz.de, floh@mkmk.in-chemnitz.de (Andre Weissflog) writes:
  15. >> In article <38232018@kone.fipnet.fi>, "Jyrki Saarinen" writes:
  16. >>  
  17. >> Instead of 2 divs, one can also use 1 div and 2 muls:
  18. >> 
  19. >>     z' = 1 / one_div_z
  20. >>     u  = u_div_z * z'
  21. >>     v  = v_div_z * z'
  22. >> 
  23.  
  24. >This can even be done faster using a precalc table.
  25. >Remember: a*b = log(a+b).
  26.  
  27. Oops!  log(a*b)=log(a)+log(b)
  28.  
  29. >Ofcourse, the size of the table can be minimize by examining the results of the log
  30. >table and the required precision. If the resulting values need not to be fixed-point
  31. >values between 0 and 512 the size of the table could be modified accordingly.
  32.  
  33. >Though I have never tested this principle, I think a major speedup in calculations can
  34. >be achieved.
  35.  
  36. >CYa,
  37.  
  38. >    Rob.
  39.  
  40. >---
  41. >Think about this for a while:
  42.  
  43. >Only fools can develop fool-proof applications.
  44.  
  45.  
  46.  
  47.